package co.yixiang.modules.config.service;


import co.yixiang.common.service.BaseService;
import co.yixiang.modules.config.entity.domain.Setting;

/**
 * 配置业务层
 *
 * @author Chopper
 * @since 2020/11/17 3:46 下午
 */
//@CacheConfig(cacheNames = "{setting}")
public interface SettingService extends BaseService<Setting> {

    /**
     * 通过key获取
     *
     * @param key
     * @return
     */
    Setting get(String key);

    /**
     * 修改
     *
     * @param setting
     * @return
     */
    boolean saveUpdate(Setting setting);
}